package com.sanyang.lawyer.ResultApi;


import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class CodeMsg {
    
    private int code;
    
    private String message;

    //请求错误的时候的调用
    public static CodeMsg SERVER_BUSY = new CodeMsg(500,"服务器正忙，请稍后重试");
   
    private CodeMsg(int code,String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
